<template>
    <div class="text_wrapper">
        <span>{{ initProp.text }}</span>
    </div>
</template>

<script setup>
import cardJson from './card.json'
// 定义配置属性
const props = defineProps({
    initProp: {
        type: Object,
        default() {
            return cardJson.initProp
        }
    }
})
</script>

<style>
.text_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
</style>

